import { useResponseSuccess } from '~/utils/response';

export default eventHandler(() => {
  // 模拟排队列表
  const queueList = [
    {
      ticketNumber: 'A001',
      customerName: '张三',
      status: 'serving',
    },
    {
      ticketNumber: 'A002',
      customerName: '李四',
      status: 'serving',
    },
    {
      ticketNumber: 'A003',
      customerName: '王五',
      status: 'waiting',
    },
    {
      ticketNumber: 'A004',
      customerName: '赵六',
      status: 'waiting',
    },
    {
      ticketNumber: 'A005',
      customerName: '钱七',
      status: 'waiting',
    },
    {
      ticketNumber: 'A006',
      customerName: '孙八',
      status: 'waiting',
    },
  ];

  return useResponseSuccess(queueList);
});
